﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DBList.Entities
{
	public class RoleData
	{
		private int _id;
		private string _name;

		public int RoleID
		{
			set { _id = value; }
			get { return _id; }
		}
		public string RoleName
		{
			set { _name = value; }
			get { return _name; }
		}
	}
    public class ClassData
    {
        private int     _id;
        private string  _name;
        private Decimal	_money;
		private string _code;

        public int ClassId
        {
            set { _id = value; }
            get { return _id; }
        }
        public string ClassName
        {
            set { _name = value; }
            get { return _name; }
        }
		public Decimal ClassMoney
        {
			set { _money = value; }
			get { return _money; }
        }
		public string KindCode
		{
			set { _code = value; }
			get { return _code; }
		}
	}
    public  class TakerKindData
    {
        private int     _memberid;
		private string	_realname;
        private string  _introduction;
        private string  _address;
        private int		_kindid;
        private string  _kindname;
		private Decimal	_singlemoney;
		private string	_code;

        public int MemberID
        {
			set { _memberid = value; }
			get { return _memberid; }
        }
        public int KindID
        {
			set { _kindid = value; }
			get { return _kindid; }
        }
        public string RealName
        {
			set { _realname = value; }
			get { return _realname; }
        }
        public string Introduction
        {
			set { _introduction = value; }
			get { return _introduction; }
        }
        public string Address
        {
			set { _address = value; }
			get { return _address; }
        }
        public String   KindName
        {
			set { _kindname = value; }
			get { return _kindname; }
        }
		public Decimal	SingleMoney
		{
			set { _singlemoney = value; }
			get { return _singlemoney; }
		}
		public String Code
		{
			set { _code = value; }
			get { return _code; }
		}
	}
	public class LYDanData : TakerKindData
	{
		private int _id;
		private DateTime _tooktime;
		private int _beginnum;
		private int _endnum;
		private int _totalnum;
		private string _comment;

		public int ID
		{
			set { _id = value; }
			get { return _id; }
		}
		public DateTime TookTime
		{
			set { _tooktime = value; }
			get { return _tooktime; }
		}
		public int BeginNumber
		{
			set { _beginnum = value; }
			get { return _beginnum; }
		}
		public int EndNumber
		{
			set { _endnum = value; }
			get { return _endnum; }
		}
		public int TotalNumber
		{
			set { _totalnum = value; }
			get { return _totalnum; }
		}
		public string Comment
		{
			set { _comment = value; }
			get { return _comment; }
		}
	}
	public class LJTJItemData: TakerKindData
	{
		private int _sentnum;
		private int _usednum;
		private int _totalnum;
		private Decimal _totalmoney;
		private Decimal _sentmoney;
		private Decimal _usedmoney;
		private string _tmcurrency;
		private string _smcurrency;
		private string _umcurrency;

		public int SentNumber
		{
			set { _sentnum = value; }
			get { return _sentnum; }
		}
		public int UsedNumber
		{
			set { _usednum = value; }
			get { return _usednum; }
		}
		public int TotalNumber
		{
			set {_totalnum = value;}
			get { return _totalnum; }
		}
		public Decimal SentMoney
		{
			set {
				_sentmoney = value;
				_smcurrency = string.Format("{0:N2}", _sentmoney);
			}
			get { return _sentmoney; }
		}
		public Decimal UsedMoney
		{
			set {
				_usedmoney = value;
				_umcurrency = string.Format("{0:N2}", _usedmoney);
			}
			get { return _usedmoney; }
		}
		public Decimal TotalMoney
		{
			set {
				_totalmoney = value;
				_tmcurrency = string.Format("{0:N2}", _totalmoney);
			}
			get { return _totalmoney; }
		}
		public string TMCurrency
		{
			get { return _tmcurrency; }
		}
		public string SMCurrency
		{
			get { return _smcurrency; }
		}
		public string UMCurrency
		{
			get { return _umcurrency; }
		}
	}
}
